package mathive.client;

import java.io.Serializable;

@SuppressWarnings("serial")
public class ClientGamesData implements Serializable {
	public static final int EASY = 0;
	public static final int MEDIUM = 1;
	public static final int HARD = 2;
	
	private int id;
	
	private String type;
	
	private int difficulty;
	
	public ClientGamesData() {
		
	}
	
	public ClientGamesData(String type, int difficultyOrId, boolean random) {
		this.type = type;
		if (random) {
			difficulty = difficultyOrId;
			id = -1;
		} else {
			id = difficultyOrId;
			difficulty = -1;
		}
	}
	
	public ClientGamesData(String type, int difficulty, int id) {
		this.type = type;
		this.difficulty = difficulty;
		this.id = id;
	}
	
	public String getType(){
		return type;
	}
	
	public int getDifficulty(){
		return difficulty;
	}
	
	public int getId(){
		return id;
	}
}
